package com.sure.supermarketserver.stock.manage.dao;

import com.sure.supermarketserver.stock.manage.BranchName;
import com.sure.supermarketserver.stock.manage.Goods;
import com.sure.supermarketserver.stock.manage.GoodsDto;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface GoodsDao {
    List<Goods> findGoodsList(GoodsDto goodsDto);

    List<Goods> findGoodsDetails(GoodsDto goodsDto);

    List<String> getGoods();

    void checkGoodsRemark(String s);

    @Update("update goods set go_exec=true ,go_num=0 where go_id =#{id}")
    void execGoodsList(String id);

    void updGoodsFA(GoodsDto dto);

    void updGoodsCH(GoodsDto dto);

    List<BranchName> findBranchList();
}
